home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / parted / linux.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-03-16  |  1.3 KB  |  46 lines

  1. /*
  2.     libparted - a library for manipulating disk partitions
  3.     Copyright (C) 2001, 2007 Free Software Foundation, Inc.
  4.  
  5.     This program is free software; you can redistribute it and/or modify
  6.     it under the terms of the GNU General Public License as published by
  7.     the Free Software Foundation; either version 3 of the License, or
  8.     (at your option) any later version.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program.  If not, see <http://www.gnu.org/licenses/>.
  17. */
  18.  
  19. #ifndef PED_LINUX_H_INCLUDED
  20. #define PED_LINUX_H_INCLUDED
  21.  
  22. #include <parted/parted.h>
  23. #include <parted/device.h>
  24.  
  25. #if defined __s390__ || defined __s390x__
  26. #  include <parted/fdasd.h>
  27. #endif
  28.  
  29. #define LINUX_SPECIFIC(dev)    ((LinuxSpecific*) (dev)->arch_specific)
  30.  
  31. typedef    struct _LinuxSpecific    LinuxSpecific;
  32.  
  33. struct _LinuxSpecific {
  34.     int    fd;
  35. #if defined(__s390__) || defined(__s390x__)
  36.     unsigned int real_sector_size;
  37.     /* IBM internal dasd structure (i guess ;), required. */
  38.     struct fdasd_anchor *anchor;
  39. #endif
  40. };
  41.  
  42. extern PedArchitecture ped_linux_arch;
  43.  
  44. #endif /* PED_LINUX_H_INCLUDED */
  45.  
  46.